#include "stdafx.h"
#include "CAudioSetStatu.h"

CAudioSetStatu::CAudioSetStatu(WCHAR * name):IStatu(name)
{
}

CAudioSetStatu::~CAudioSetStatu(void)
{
}

bool CAudioSetStatu::EnterStatu()
{
	//g_pSeries->SendCMD_RadioFun(0x20);
    g_pSeries->SendGet03_OptionCMD(0);
	return true;
}

bool CAudioSetStatu::EvaluateClickEvent(const WCHAR* elementName)
{
	if (wcscmp(elementName,L"audioset_balance_left") == 0)
	{
		g_pSeries->SendCMD_AudioFun(1);
		return true;
	}
	 else if (wcscmp(elementName,L"audioset_balance_right") == 0)
	{
		g_pSeries->SendCMD_AudioFun(2);
		return true;
	}
	
	 else if (wcscmp(elementName,L"audioset_fader_left") == 0)
	{
		g_pSeries->SendCMD_AudioFun(3);
		return true;
	}
	 else if (wcscmp(elementName,L"audioset_fader_right") == 0)
	{
		g_pSeries->SendCMD_AudioFun(4);
		return true;
	}
	 else if (wcscmp(elementName,L"audioset_bass_left") == 0)
	{
		g_pSeries->SendCMD_AudioFun(5);
		return true;
	}
	 else if (wcscmp(elementName,L"audioset_bass_right") == 0)
	{
		g_pSeries->SendCMD_AudioFun(6);
		return true;
	}
	 else if (wcscmp(elementName,L"audioset_treble_left") == 0)
	{
		g_pSeries->SendCMD_AudioFun(7);
		return true;
	}
	 else if (wcscmp(elementName,L"audioset_treble_right") == 0)
	{
			g_pSeries->SendCMD_AudioFun(8);
		return true;
	}
	 else if (wcscmp(elementName,L"audioset_preeq_left") == 0)
	{
		g_pSeries->SendCMD_AudioFun(9);
		return true;
	}
	  else if (wcscmp(elementName,L"audioset_preeq_right") == 0)
	{
        g_pSeries->SendCMD_AudioFun(0xa);  
		return true;
	}
		
	return false;
}
 bool CAudioSetStatu::ExitStatu()
 {
   return true;
 }
